﻿function callback() {
	require(['durandal/system', 'durandal/app', 'durandal/viewLocator', 'bootstrap', 'easyui', 'jquery',
			'knockout', 'komapping', 'polyfills','customBindings'],
    function(system, app, viewLocator, bootstrap, easyui, $,
			 ko, komapping, polyfills,customBindings) {
			//>>excludeStart("build", true);
			system.debug(true);
			//>>excludeEnd("build");

			ko.mapping = komapping; //把mapping附加到ko上

			app.title = 'Durandal Test';

			app.configurePlugins({
				router: true,
				dialog: true,
				widget: true
			});

			app.start().then(function() {
				//Replace 'viewmodels' in the moduleId with 'views' to locate the view.
				//Look for partial views in a 'views' folder in the root.
				viewLocator.useConvention();
				//Show the app by setting the root view model for our application with a transition.
				app.setRoot('app-main/shell', 'entrance');
			});
		})
}
require(['require.config'], callback);